package com.smartum.mpr.client.event;

import com.google.gwt.event.shared.GwtEvent;

/**
 * Login event which fires after successful login action.
 * <p/>
 * Responsible for navigation to the admin console.
 */
public class LoginEvent extends GwtEvent<LoginEventHandler> {
    public static Type<LoginEventHandler> TYPE = new Type<LoginEventHandler>();

    @Override
    public Type<LoginEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(LoginEventHandler handler) {
        handler.doLoginAdminConsole();
    }
}
